package com.hk.core.authentication.api.validatecode.image;

import com.hk.core.authentication.api.validatecode.AbstractValidateCodeProcessor;
import com.hk.core.authentication.api.validatecode.SpringCacheValidateCodeStrategy;
import com.hk.core.authentication.api.validatecode.ValidateCodeGenerator;
import com.hk.core.authentication.api.validatecode.ValidateCodeStrategy;

/**
 * 图片验证码生成器
 *
 * @author kevin
 * @date 2018-07-27 14:46
 */
public class ImageCodeProcessor extends AbstractValidateCodeProcessor<ImageCode> {

    public ImageCodeProcessor() {
        super(new ImageCodeGenerator(), new SpringCacheValidateCodeStrategy<>());
    }

    public ImageCodeProcessor(ValidateCodeStrategy<ImageCode> validateCodeStrategy) {
        super(new ImageCodeGenerator(), validateCodeStrategy);
    }

    public ImageCodeProcessor(ValidateCodeGenerator<ImageCode> validateCodeGenerator,
                              ValidateCodeStrategy<ImageCode> validateCodeStrategy) {
        super(validateCodeGenerator, validateCodeStrategy);
    }
}
